<?php

/**
 * Design 配置文件
 * @author hxtgirq hxtgirq710@qq.com
 */
return array(
	//数据库配置
	'DB_HOST'=>'localhost',
	'DB_TYPE'=>'mysql',
	'DB_NAME'=>'sydney',
	'DB_USER'=>'sydney',
	'DB_PWD' =>'sydney',
	'DB_PORT'=>3306,
	'DB_PREFIX'=>'yf_',

	//分组配置
	'APP_GROUP_LIST'=>'admin,home',
	'APP_GROUP_PATH'=>'Njs',
	'APP_GROUP_MODE'=>1,
	'DEFAULT_GROUP'=>'home',

	//URL摸式
	'URL_MODEL'=>2,

	//关闭表单令牌验证
	'TOKEN_ON'=>false,

	'URL_ROUTER_ON'=>true,//开启路由
	'URL_ROUTE_RULES'=>array(//定义路由规则
		'/^index\/(\d+)$/'=>'home/Index/index?p=:1',
		'/^index$/'=>'home/Index/index',
		'/^index\/([a-zA-Z0-9]+)$/'=>'home/Index/index?key=:1',
		'/^index\/([a-zA-Z0-9]+)\/(\d+)$/'=>'home/Index/index?key=:1&p=:2',
		'/^detail\/(\d+)$/'=>'home/Index/detail?id=:1',
		'/^search$/'=>'home/Index/index',
	),

    //静态缓存
    'HTML_CACHE_ON'=>true,
    'HTML_CACHE_RULES'=>array(
        'Index:index'=>array("Index/index_{key}",30),
        'Index:detail'=>array("Index/detail_{id}",60),
    ),
);

?>